package com.esteel.settlement.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;


/**
 * The persistent class for the TB_SETT_ACCOUNT database table.
 * 
 */
@Entity
@Table(name="TB_SETT_ACCOUNT")
@NamedQuery(name="TbSettAccount.findAll", query="SELECT t FROM TbSettAccount t")
public class TbSettAccount implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private TbSettAccountPK id;

	private int acctFlag;

	private String acctName;

	private String bankCode;

	private String bankName;

	private String custName;

	@Temporal(TemporalType.TIMESTAMP)
	private Date financeDate;

	private int financeType;

	private String idCode;

	private String idType;

	private String relatedAcctId;

	private String supAcctId;

	@Temporal(TemporalType.TIMESTAMP)
	private Date tranDate;

	private int tranType;

	private int userSatus;
	
	private int funcFlag;

	//客户的资金表信息
	@Transient
	private TbSettFund fund;
	
	public TbSettAccount() {
	}

	public TbSettAccountPK getId() {
		return this.id;
	}

	public void setId(TbSettAccountPK id) {
		this.id = id;
	}

	public int getAcctFlag() {
		return acctFlag;
	}

	public void setAcctFlag(int acctFlag) {
		this.acctFlag = acctFlag;
	}

	public String getAcctName() {
		return acctName;
	}

	public void setAcctName(String acctName) {
		this.acctName = acctName;
	}

	public String getBankCode() {
		return bankCode;
	}

	public void setBankCode(String bankCode) {
		this.bankCode = bankCode;
	}

	public String getBankName() {
		return bankName;
	}

	public void setBankName(String bankName) {
		this.bankName = bankName;
	}

	public String getCustName() {
		return custName;
	}

	public void setCustName(String custName) {
		this.custName = custName;
	}

	public Date getFinanceDate() {
		return financeDate;
	}

	public void setFinanceDate(Date financeDate) {
		this.financeDate = financeDate;
	}

	public int getFinanceType() {
		return financeType;
	}

	public void setFinanceType(int financeType) {
		this.financeType = financeType;
	}

	public String getIdCode() {
		return idCode;
	}

	public void setIdCode(String idCode) {
		this.idCode = idCode;
	}

	public String getIdType() {
		return idType;
	}

	public void setIdType(String idType) {
		this.idType = idType;
	}

	public String getRelatedAcctId() {
		return relatedAcctId;
	}

	public void setRelatedAcctId(String relatedAcctId) {
		this.relatedAcctId = relatedAcctId;
	}

	public String getSupAcctId() {
		return supAcctId;
	}

	public void setSupAcctId(String supAcctId) {
		this.supAcctId = supAcctId;
	}

	public Date getTranDate() {
		return tranDate;
	}

	public void setTranDate(Date tranDate) {
		this.tranDate = tranDate;
	}

	public int getTranType() {
		return tranType;
	}

	public void setTranType(int tranType) {
		this.tranType = tranType;
	}

	public int getUserSatus() {
		return userSatus;
	}

	public void setUserSatus(int userSatus) {
		this.userSatus = userSatus;
	}

	public int getFuncFlag() {
		return funcFlag;
	}

	public void setFuncFlag(int funcFlag) {
		this.funcFlag = funcFlag;
	}

	public TbSettFund getFund() {
		return fund;
	}

	public void setFund(TbSettFund fund) {
		this.fund = fund;
	}

}